package com.enjoyor.soa.traffic.core.tpcms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.tpcms.constant.PassApplySqlId;
import com.enjoyor.soa.traffic.core.tpcms.domain.PassApply;
import com.enjoyor.soa.traffic.core.tpcms.mapper.IPassApplyMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;

@Service
@Transactional
public class PassApplyMapper extends BaseMapper<PassApply> implements IPassApplyMapper {

    /*
     * @Override public void insert(PassApply passApply) {
     * passApply.setPassApplyId("A" + String.valueOf(System.nanoTime()));
     * super.insert(passApply); }
     */

    @Override
    public List<PassApply> getPassApplyList(Map<String, Object> map) {
        return sqlSessionTemplate.selectList(getSqlName(PassApplySqlId.SQL_SELECT_LIST), map);
    }
}
